home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Future Workshop
/
Future Workshop.iso
/
internet
/
getcon
/
wincim
/
scripts.lib
/
ISRAKAV.SCR
< prev
next >
Wrap
Text File
|
1994-12-29
|
2KB
|
92 lines
!
! Copyright (c) 1993
! by CompuServe Incorporated, Columbus, Ohio
!
! The information in this software is subject to change without
! notice and should not be construed as a commitment by CompuServe.
!
! IsraKav:
! Connect to IsraKav
! Success: returns %Success
! Failure: saves error msg in %FailureMsg and returns %Failure
!
!+V
! "3.5.2"
!-V
Logon_Attempts = 7;
Attempts = 7;
on cancel goto IsraKav_Cancelled;
show "Connecting to IsraKav";
wait
"CONNECT^M" goto Below_2400,
"1200" goto Below_2400,
"2400" goto Send_2400
until 60;
send ".CSERVE" & %CR;
goto Wait_IsraKav;
Below_2400:
if Logon_Attempts = 0 goto IsraKav_Failed;
Logon_Attempts = Logon_Attempts - 1;
wait until 3;
send %CR & "D" & %CR;
wait
"***" goto Wait_IsraKav
until 100;
goto Below_2400;
Send_2400:
if Logon_Attempts = 0 goto IsraKav_Failed;
Logon_Attempts = Logon_Attempts - 1;
wait until 2;
send "@D" & %CR;
wait
"***" goto Wait_IsraKav
until 100;
goto Send_2400;
Wait_IsraKav:
if Attempts = 0 goto IsraKav_Failed;
wait
"TERMINAL=" goto Send_IsraKav_ID,
"@" goto Send_IsraKav_Address,
%mdm_Failure goto IsraKav_Failed,
"NOT OBTAINABLE" goto IsraKav_Unavailable,
"Host Name:" goto IsraKav_Success,
"User ID:" goto IsraKav_Success
until 85;
Attempts = Attempts - 1;
send "@D" & %CR;
goto Wait_IsraKav;
Send_IsraKav_ID:
wait until 5;
send "D1" & %CR;
goto Wait_IsraKav;
Send_IsraKav_Address:
show "Sending IsraKav address...";
wait until 10;
send "3300045217" & %CR;
goto Wait_IsraKav;
IsraKav_Success:
send %CR;
exit %Success;
IsraKav_Failed:
define %FailureMsg = "IsraKav: No Answer";
exit %Failure;
IsraKav_Unavailable:
define %FailureMsg = "IsraKav Unavailable";
exit %Failure;
IsraKav_Cancelled:
exit %Cancel;